<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}

			#myCan {
				display: block;
				margin: 0 auto;
				background-color: lightskyblue;
			}
		</style>
	</head>
	<body>
		<canvas id="myCan" width="800" height="400"></canvas>
		<script type="text/javascript">
			var oC = document.getElementById('myCan');
			var ctx = oC.getContext('2d');
			var tmp1 = [0,2,5,-1,5,6,3];
			var tmp2 = [-9,-7,-7,-7,-6,-5,-8];
			//循环画圈
			for(i=0;i<7;i++){
				ctx.beginPath();
				ctx.strokeStyle = 'blue';
				ctx.arc((50+50*i),100-(tmp1[i]-tmp1[0]*5),5,0,2*Math.PI);
				ctx.stroke();
				// ctx.closePath();
			}
		</script>
	</body>
</html>
